package com.sumainfor.pc.cfo.feign.extend;

import com.sumainfor.common.util.JsonResult;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;
import java.util.Map;

/**
 * @Author PuaChen
 * @Create 2019-04-17 18:37
 */
public interface GmioFeign {

    /**
     * 查询唐巢收入信息 房租 公共事业 维修 夜间开门 退租 其他 主页数据
     *
     * @param params
     * @return
     */
    @PostMapping("/provider/key/financial/selectOrderInTableList")
    JsonResult selectOrderInTableList(@RequestParam Map<String, Object> params);


    /**
     * 查询唐巢支出账单
     * //账单类型  1.业主   2.供应商  3.退租账单   4.公共事业费
     *
     * @param params
     * @return
     */
    @PostMapping("/provider/key/financial/selectOrderOutTableList")
    JsonResult selectOrderOutTableList(@RequestParam Map<String, Object> params);


    /**
     * 业主房租待打款
     */
    @GetMapping("/provider/key/theOwnerRent/getTheOwnerRent")
    JsonResult getTheOwnerRent();


    /**
     * 唐巢支付 设置支付成功接口
     *
     * @param biOutId
     * @return
     */
    @PostMapping("/provider/key/financial/setPayDone")
    JsonResult setPayDone(@RequestParam("biOutId") String biOutId);

    /**
     * 根据房源编号查询房源收入和房源支出, type为1查收入, type为2查支出
     **/
    @PostMapping("/provider/key/CfoSearch/getOutAndInByHouseId")
    List<Map<String, Object>> getOutAndInByHouseId(@RequestBody Map<String, Object> map, @RequestParam("type") Integer type);
}
